<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://doc.hyperf.io
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
 */

namespace App\Controller;

use Hyperf\HttpServer\Annotation\Middleware;
use App\Middleware\JTAuthMiddleware;
use App\Service\Friend\MatchOneService;
use App\Service\Friend\OnlineTipListService;
use App\Service\Friend\RecMomentListService;
use App\Service\Friend\RecUserListService;
use App\Service\Friend\ShowListService;
use App\Service\Friend\SlideOpService;
use App\Service\Friend\SuperLikeService;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\HttpServer\Annotation\Controller;

/**
 * @Controller(prefix="friend")
 */
class FriendController extends AbstractController
{
    /**
     * 匹配
     * @RequestMapping(path="match", methods="post")
     * @Middleware(JTAuthMiddleware::class)
     */
    public function match(MatchOneService $service)
    {
        return $service->response();
    }

    /**
     * 首页展示头像(特效)
     * @RequestMapping(path="show_list", methods="post")
     * @Middleware(JTAuthMiddleware::class)
     */
    public function show_list(ShowListService $service)
    {
        return $service->response();
    }

    /**
     * 推荐用户卡片列表(上线提示跳转)
     * @RequestMapping(path="rec_user_list", methods="post")
     * @Middleware(JTAuthMiddleware::class)
     */
    public function rec_user_list(RecUserListService $service)
    {
        return $service->response();
    }

    /**
     * 推荐动态列表(发现宝藏跳转)
     * @RequestMapping(path="rec_moment_list", methods="post")
     * @Middleware(JTAuthMiddleware::class)
     */
    public function rec_moment_list(RecMomentListService $service)
    {
        return $service->response();
    }

    /**
     * 左右滑动(不喜欢和喜欢操作)
     * @RequestMapping(path="slide_op", methods="post")
     * @Middleware(JTAuthMiddleware::class)
     */
    public function slide_op(SlideOpService $service)
    {
        return $service->response();
    }

    /**
     * 超级喜欢
     * @RequestMapping(path="super_like", methods="post")
     * @Middleware(JTAuthMiddleware::class)
     */
    public function super_like(SuperLikeService $service)
    {
        return $service->response();
    }

}
